I'm trying to figure out how to add strike-out format to an entire Object Text, preserving other rich-text markup and OLE diagrams. This did not work:
buf = "{\\rtf1 \\strike "
buf += richTextWithOle(obj, "Object Text")
buf += "\\strike0 }"
obj."Object Text" = richText(buf)
llandale - Wed Aug 11 08:44:46 EDT 2010 |
Re: StrikeOut Text
You can use "richTextFragment" to remove the header from the rtf before doing the "strike":
string s = richTextFragment richTextWithOle (object 171)."Object Text"
(object 186)."Object Text" = richText ("{\\rtf1 \\strike " s "}")
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: StrikeOut Text \\strike To terminate the strikethrough, I iterated through the string in reverse and looked for the last paragraph mark (i.e. \\par) and spliced in the strikethrough terminator: \\strike0 That worked for me. |
Re: StrikeOut Text Mathias Mamsch - Wed Aug 11 09:04:52 EDT 2010
You can use "richTextFragment" to remove the header from the rtf before doing the "strike":
string s = richTextFragment richTextWithOle (object 171)."Object Text"
(object 186)."Object Text" = richText ("{\\rtf1 \\strike " s "}")
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
Thanks. - Louie |
Re: StrikeOut Text llandale - Wed Aug 11 15:33:05 EDT 2010 Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS |